import axios from '@/utils/request'

// 库存
const Home = {
    // 搜索
    search(params) {
      return axios.post('/api/index/search', params);
    },
    //
    projectList(params) {
      return axios.post('/api/index/projectList', params);
    },
    worksListh(params) {
      return axios.post('/api/index/worksList', params);
    },
    tradingNewsList(params) {
      return axios.post('/api/index/tradingNewsList', params);
    },
    noticeList(params) {
      return axios.get('/api/notice/list?' +params );
    },
    delistList(params) {
      return axios.post('/api/index/delistList',params);
    },
    originators(params) {
      return axios.get('/api/originators/list',params);
    },
    tradeNews(params) {
      return axios.post('/api/tradeNews/list',params);
    },

    Htlist(params) {
      return axios.get('/api/agreement/list',{
        params:params})
    },
    ZDlist(params) {
      return axios.get('/api/bill/list',{
        params:params});
    },

    Sclist(params) {
      return axios.post('/api/mycollection/list',params);
    },
    
    Addsc(params){
      return axios.post('/api/mycollection/addMyTrading',params);

    },
    Closesc(params){
      return axios.post('/api/mycollection/cannelMyTrading',params);

    },
    
    Fplist(params){
      return axios.get('/api/payRecord/list',{
        params:params});
    },

    videoList(params){
      return axios.post('/api/video/videoList',params);

    },
    showNews(params){
      return axios.post('/api/tradeNews/byId',params);

    },

    pushFp(params){
      return axios.post('/api/payRecord/add',params);

    },
    
    info(params){
      return axios.post('/api/product/info',params);

    },
   

  
  }
  
  export default Home;